﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Customer Type Repository Interface
    /// </summary>
    public interface ICustomerTypeRepository
    {
        /// <summary>
        /// Get All Customer Type
        /// </summary>
        /// <returns></returns>
        IQueryable<CustomerType> FindAllCustomerType();

        /// <summary>
        /// Get Customer Type By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<CustomerType> FindCustomerTypeByName(string strQuery);

        /// <summary>
        /// Get Customer Type By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        CustomerType GetCustomerTypeById(int id);

        /// <summary>
        /// Add Customer Type in the Database
        /// </summary>
        /// <param name="customerType"></param>
        void Add(CustomerType customerType);

        /// <summary>
        /// Delete Customer Type from the Database
        /// </summary>
        /// <param name="customerType"></param>
        void Delete(CustomerType customerType);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}